package com.turing.post.common.util;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 平台公用参数
 * 
 * @author zxp
 * @Jan 10, 2013
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "Global")
public class Global implements Serializable {

	private String id;//
	private String chinaNationCodeId;// 批量导入持卡人实名信息时个人信息国家代码
	private String commonIdTypeName;// 批量导入持卡人实名信息时只接受身份证号
	private BigInteger issueCompanyRoleId;// 发卡商角色自动添加发卡商产生用户时使用
	private Integer pwdErrLimit;// 密码错误时限 number(4) Not Null 初始为30 minute，单位：分钟
	private Integer maxPwdErrCnt;// 密码错误次数 number(1) Not Null
	private Integer pwdExpiredLimit;// 密码有效期时限，过了该期限提示用户修改密码
	private String personalCustomProfession;// 职业编号
	private Integer bankAccountDetailSize;// 打包提交销售单时现金部分查询银行入账流水条数

	public Global() {
		super();
	}

	@Id
	@Column(name = "ID")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "CHINANATIONCODEID")
	public String getChinaNationCodeId() {
		return chinaNationCodeId;
	}

	public void setChinaNationCodeId(String chinaNationCodeId) {
		this.chinaNationCodeId = chinaNationCodeId;
	}

	@Column(name = "COMMONIDTYPENAME")
	public String getCommonIdTypeName() {
		return commonIdTypeName;
	}

	public void setCommonIdTypeName(String commonIdTypeName) {
		this.commonIdTypeName = commonIdTypeName;
	}

	@Column(name = "ISSUECOMPANYROLEID")
	public BigInteger getIssueCompanyRoleId() {
		return issueCompanyRoleId;
	}

	public void setIssueCompanyRoleId(BigInteger issueCompanyRoleId) {
		this.issueCompanyRoleId = issueCompanyRoleId;
	}

	@Column(name = "PWDERRLIMIT")
	public Integer getPwdErrLimit() {
		return pwdErrLimit;
	}

	public void setPwdErrLimit(Integer pwdErrLimit) {
		this.pwdErrLimit = pwdErrLimit;
	}

	@Column(name = "MAXPWDERRCNT")
	public Integer getMaxPwdErrCnt() {
		return maxPwdErrCnt;
	}

	public void setMaxPwdErrCnt(Integer maxPwdErrCnt) {
		this.maxPwdErrCnt = maxPwdErrCnt;
	}

	@Column(name = "PWDEXPIREDLIMIT")
	public Integer getPwdExpiredLimit() {
		return pwdExpiredLimit;
	}

	public void setPwdExpiredLimit(Integer pwdExpiredLimit) {
		this.pwdExpiredLimit = pwdExpiredLimit;
	}

	@Column(name = "PersonalCustomProfession")
	public String getPersonalCustomProfession() {
		return personalCustomProfession;
	}

	public void setPersonalCustomProfession(String personalCustomProfession) {
		this.personalCustomProfession = personalCustomProfession;
	}

	public Integer getBankAccountDetailSize() {
		return bankAccountDetailSize;
	}

	public void setBankAccountDetailSize(Integer bankAccountDetailSize) {
		this.bankAccountDetailSize = bankAccountDetailSize;
	}
}